package com.example.teachingevaluationsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 课程
 *
 * @author lp
 * @since 2022-03-28
 */
@Getter
@Setter
@TableName("course")
@ApiModel(value = "Course对象", description = "课程")
public class Course implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("课程名")
  @TableField("name")
  private String name;

  @ApiModelProperty("老师id")
  @TableField("teacher_id")
  private Long teacherId;

  @ApiModelProperty("课程介绍")
  @TableField("introduction")
  private String introduction;

  @ApiModelProperty("专业")
  @TableField("major")
  private String major;
}
